username and password into base64 encoding c#

138

username and password into base64 encoding c# -

var byteArray = Encoding.ASCII.GetBytes($"{UserName}:{Password}");
            string encodeString = Convert.ToBase64String(byteArray);

Comments

Submit
1 Comments
  • 31/8/2023 10:58 - Asia/Bishkek

AQAAAAEAACcQAAAAENNsvv64PjjtDXEr+Frlmg1Hi5o1cXReOfpXm7JV4onrKX4p/oOBhvvjoW1nLjq/Uw==